package com.htl.mapper;

import com.htl.dto.BarDTO;
import com.htl.dto.BaseLineDTO;
import com.htl.entity.OrderMaster;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author 韩天乐
 * @since 2021-11-14
 */

@Repository
public interface OrderMasterMapper extends BaseMapper<OrderMaster> {
    public Boolean cancel(Integer buyerId,String orderId);
    public Boolean finish(String orderId);
    public Boolean pay(Integer buyerId,String orderId);
    public Boolean updateStatusByOrderId(String orderId,Integer status);
    public List<BarDTO> bar();
    public List<BaseLineDTO> baseLine();
    public List<String> findAllNames();
    public List<String> findAllDates();
    public List<Integer> findDatas(String name);
}
